package com.mall.module.user.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
@ApiModel(description = "验证码发送数据传输对象")
public class VerifyCodeDTO {

    @ApiModelProperty(value = "手机号/邮箱", required = true)
    @NotBlank(message = "接收方不能为空")
    private String receiver;

    @ApiModelProperty(value = "验证码类型(LOGIN/REGISTER/UPDATE_MOBILE/UPDATE_EMAIL/RESET_PASSWORD)", required = true)
    @NotBlank(message = "验证码类型不能为空")
    private String codeType;
} 